package 抽象类HouseProperty及其子类;

/**
 * @author ：wang-ting
 * @Date：2025/6/22 14:10
 */
public class Residence extends HouseProperty{

    protected Residence(double area, double unitPrice) {
        super(area, unitPrice);
    }

    @Override
    public double taxCalculation() {
        if(this.area <= 90){
            return this.unitPrice * this.area *  0.015;
        }else{
            return this.unitPrice * this.area *  0.02;
        }
    }

}
